package com.yuanchu.store.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yuanchu.common.utils.PageUtils;
import com.yuanchu.common.utils.Query;
import com.yuanchu.store.dao.YoshopAdminUserDao;
import com.yuanchu.store.entity.YoshopAdminUserEntity;
import com.yuanchu.store.service.YoshopAdminUserService;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("yoshopAdminUserService")
public class YoshopAdminUserServiceImpl extends ServiceImpl<YoshopAdminUserDao, YoshopAdminUserEntity> implements YoshopAdminUserService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<YoshopAdminUserEntity> page = this.page(
                new Query<YoshopAdminUserEntity>().getPage(params),
                new QueryWrapper<YoshopAdminUserEntity>()
        );

        return new PageUtils(page);
    }

}